package com.rchat.pocmini.activity.groupmember;

import com.aso.common.http.delegate.HttpCallbackImpl;
import com.rchat.pocmini.bean.QueryGroupMemberBean;
import com.rchat.pocmini.common.mvp.BaseModel;
import com.rchat.pocmini.common.mvp.BasePresenter;
import com.rchat.pocmini.common.mvp.BaseView;

import java.util.ArrayList;

/**
 * Created by ljd on 2017/9/7.
 */

public interface GroupMemberContract {
    interface View extends BaseView {
        void showGroupMemberListView(ArrayList<QueryGroupMemberBean.DataBean.ChatMembersBean> data);
    }

    abstract class Presenter extends BasePresenter<GroupMemberContract.View, GroupMemberContract.Model> {
        abstract void queryGroupMember(String groupId);

        /**
         * 删除/退出群组
         *
         * @param groupId
         */
        abstract void delGroup(String groupId);
    }

    interface Model extends BaseModel {
        /**
         * 查询频道成员
         *
         * @param groupId
         * @param callback
         */
        void queryGroupMember(String groupId, HttpCallbackImpl callback);

        /**
         * 删除/退出群组
         *
         * @param groupId
         * @param user
         * @param callback
         */
        void delGroup(String groupId, String user, HttpCallbackImpl callback);
    }
}
